package com.example.spring6iocxml.demoBean;

import java.util.Arrays;

/**
 * @ClassName Student
 * @Date 2024/5/20 20:22
 * @Description TODO
 * @User lihuajie
 * @Version 1.0.0
 **/
public class Student{
        private Integer id;

        private String name;

        private Integer age;

        private String sex;

        private Clazz clazz;

        private String[] hobbies;

        @Override
        public String toString() {
                return "Student{" +
                        "id=" + id +
                        ", name='" + name + '\'' +
                        ", age=" + age +
                        ", sex='" + sex + '\'' +
                        ", clazz=" + clazz +
                        ", hobbies=" + Arrays.toString(hobbies) +
                        '}';
        }

        public String[] getHobbies() {
                return hobbies;
        }

        public void setHobbies(String[] hobbies) {
                this.hobbies = hobbies;
        }

        public Clazz getClazz() {
                return clazz;
        }

        public void setClazz(Clazz clazz) {
                this.clazz = clazz;
        }

        public Student(Integer id, String name, Integer age, String sex, Clazz clazz) {
                this.id = id;
                this.name = name;
                this.age = age;
                this.sex = sex;
                this.clazz = clazz;
        }


        public Student() {
        }

        public Integer getId() {
                return id;
        }

        public void setId(Integer id) {
                this.id = id;
                System.out.println("hello id");
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public Integer getAge() {
                return age;
        }

        public void setAge(Integer age) {
                this.age = age;
        }

        public String getSex() {
                return sex;
        }

        public void setSex(String sex) {
                this.sex = sex;
        }


}
